function queryhis() {
    var arg=$.trim($('#arg').val());
    var data = {"arg": arg};
    $.ajax({
        url: "/chaincode/queryhis",
        type: "post",
        data: JSON.stringify(data),
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (dat) {
            if (dat.code == 1000) {
                if(dat.data==""||dat.data==null){
                    swal({
                        title: "未查询到信息",
                        type: "error",
                        buttons: false,
                        timer: 1000
                    });
                } else if(dat.data.cnName==null||dat.data.cnName==""){
                        swal({
                            title: "未查询到信息",
                            type: "error",
                            buttons: false,
                            timer: 1000
                        });
                }else{
                    $('#cnName1').val(dat.data.cnName);
                    $('#enName1').val(dat.data.enName);
                    $('#phoneNumber1').val(dat.data.phoneNumber);
                    $('#idcardNumber1').val(dat.data.idcardNumber);
                    $('#userType1').val(dat.data.userType);
                    $('#createTime1').val(dat.data.createTime);
                    $('#createUser1').val(dat.data.createUser);
                    $('#limitedDays1').val(dat.data.limitedDays);
                    $('#reasons1').val(dat.data.reasons);
                    $('#description1').val(dat.data.description);
                    $('#otherInformation1').val(dat.data.otherInformation);
                    $('#queryBlackModal').modal('show');
                }

            } else {
                swal({
                    title: "查询失败",
                    type: "error",
                    buttons: false,
                    timer: 1000
                });
            }
        },
        error: function (returndata) {
            swal({
                title: "发生错误",
                type: "error",
                buttons: false,
                timer: 1000
            });
        }
    });

}

